import request from '@/utils/request'

export const getConditionList = () => {
  return request({
    method: 'get',
    url: '/houses/condition',
    params: {
      id: 'AREA|88cff55c-aaa4-e2e0'
    }
  })
}
/**
 * get-home-list
 * @param {cityId,start,end} params
 */
export const getHomeList = (params) => {
  return request({
    method: 'get',
    url: '/houses',
    params
  })
}

export const getHomeInfo = (id) => {
  return request({
    method: 'get',
    url: `/houses/${id}`
  })
}
